<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<!-- <link rel="stylesheet" type="text/css" href="__PUBLIC__Css/public.css"> -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/public.css" />
<!-- <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script> -->
</head>

<body>
	<table>
		<tr>
			<th>ID</th>
			<th>发布者</th>
			<th>内容</th>
			<th>发布时间</th>
			<th>操作</th>
		</tr>

		<?php if(is_array($wish)): foreach($wish as $key=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["username"]); ?></td>
				<td><?php echo (replace_phiz($v["content"])); ?></td>
				<td><?php echo (date('y-m-d H:i', $v["time"])); ?></td>
				<td>
					<!-- 把$v这个数组里面的id传过去，传参 -->
					<a href="<?php echo U('Admin/MsgManage/delete', array('id' => $v['id']));?>">删除</a>
				</td>
			</tr><?php endforeach; endif; ?>

		<tr>
			<td colspan='5' align='center'>
				<?php echo ($page); ?>
			</td>
		</tr>
	</table>
</body>
</html>